package factory;

/**
 * 工厂
 *
 * @author: 任福祥
 * * @create: 2024-02-22 09:13
 */
public class Wait {
    public static final int MEAN_MEET = 1;
    public static final int MEAN_FISH = 2;
    public static final int MEAN_DUCK = 3;
    public static Restaurant getMean(int meantype){
        switch (meantype){
            case MEAN_MEET :
                return new Meet();
            case MEAN_FISH :
                return new Fish();
            case MEAN_DUCK :
                return new Duck();
            default:
                return null;
        }
    }
}